package com.zjj.pojo;

public class Employee {
    private int id;
    private String name;
    private int age;
    private String position;

    public int getId() {
        return id;
    }


    public String toString1() {
        return
                id  +
                " | " + name + "\t" +
                " | " + age + "\t" +
                        " | " + position;
    }
    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", position='" + position + '\'' +
                '}';
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getname() {
        return name;
    }

    public void setname(String name) {
        this.name = name;
    }

    public int getage() {
        return age;
    }

    public void setUage(int age) {
        this.age = age;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }
}
